package main

import (
	"log"
	"net/http"
	"renter/application/routers"
	"time"
)

func main() {

	router := routers.InitRouter()
	server := http.Server{
		Addr:           ":8080",
		Handler:        router,
		ReadTimeout:    5 * time.Second,
		WriteTimeout:   5 * time.Second,
		MaxHeaderBytes: 1 << 20,
	}
	log.Printf("[info] starting server on port 8080")
	_ = server.ListenAndServe()
}
